#coding = utf-8
import requests
import time
import json
import urllib
import hashlib
key = 'DzscG97na'
dict = {"name": '1', "headimg": '1', "username": '1',
        "time": '1', "channel": "1", ";lang": 'cn'}


def get_signature(param_dict, key):
    sign_list = ['%s=%s' % (k, v) for (k, v) in param_dict.items()]
    sign_list.sort()
    sign_list.append('key=' + key)
    return hashlib.md5('&'.join(sign_list)).hexdigest()


re = get_signature(dict, key)
print(str(re))
